<head>
    <!-- 声明使用utf-8编码 -->
    <meta http-equiv="content-type" content="txt/html; charset=utf-8"/>
    <!-- jquery 核心 JavaScript 文件 -->
    <script src="/static/js/jquery-3.5.1.min.js"></script>
    <!-- 工具函数 JS 文件 -->
    <script src="/static/js/util.js"></script>
    <!-- 接口url链接 JS 文件 -->
    <script src="/static/js/urlInterface.js"></script>
    <!-- 信息码 JS 文件 -->
    <script src="/static/js/statusCode.js"></script>

    <style>
        .inform-box {
            width: 600px;
            height: 400px;
            position: absolute;
            left: 50%;
            transform: translate(-50%);
        }

        .inform-main {
            width: 500px;
            height: 200px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }

        .inform-image {
            height: 130px;
            width: 130px;
        }

        .inform-text {
            position: absolute;
        }
    </style>
</head>

<div class="col-lg-10">
    <div style="height: 100%">
        <div class="inform-box">
            <div class="inform-main">
                <div class="col-lg-4">
                    <div class="inform-image">
                        <img src="../static/img/happy.png">
                    </div>
                </div>
                <div class="col-lg-8">
                    <div class="inform-text">
                        Hi，真不巧你的Token已丢失
                        <h3>你没有权限访问该页面</h3>
                        <p><h4>请重新登录访问</h4></p>
                        <p>
                            <button id="to_login" class="btn btn-primary">重新登录</button>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    $(function () {
        bindOnEvent();
    });

    //绑定事件
    function bindOnEvent() {
        //给重新登录按钮绑定点击事件
        $("#to_login").click(function () {
            window.location.href = to_login + "?code=" + UNAUTHORIZED;//跳转到登录页面
        });

    }
</script>

